import { Store } from 'vuex';
// 有新增状态管理模块都需要更新这里
export type State = {
  routeMenus: RouteMenus;
  AppState:AppState;
  multiTags: multiTagsType;
  keepAlivePages:keepAlivePageType;
}
// 侧边菜单栏数据管理
export type RouteMenus = {
  routeMenus:Object[];
}
// 项目配置数据管理
export type AppState = {
  sidebar: {
    opened: boolean;
    hidden:boolean;
  };
}
// 标签页数据管理
export type multiTagsType = {
  multiTags: any;
};

// 路由页面状态缓存数据管理
export type keepAlivePageType = {
  keepAliveNames: any;
};

declare module '@vue/runtime-core' {
  interface ComponentCustomProperties {
    $store: Store<State>
  }
}